from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'', include('ytcommunity.common.urls')),    
    (r'^blogs/', include('ytcommunity.blog.urls')),    
    (r'^forum/', include('ytcommunity.forum.urls')),    
    (r'^go/', include('ytcommunity.shorturl.urls')),    
)

urlpatterns += patterns('django.views.generic.simple',
    ('^blog/', 'redirect_to', {'url': '/blogs/'}),
)

urlpatterns += patterns('',
    (r'^admin/cache/flushall/$', 'ytbase.view.admin.flush_all'),
)
